#{extends 'EmploymentAction/layout.html' /}

<div id="crudList" class="">

    <h2 id="crudListTitle">栏目管理</h2>

    <div id="crudListSearch">
    </div>

    <div id="crudListTable">
        <form action="">
          <table>
           <thead>
            <tr>
              <th>栏目编号</th>
              <th>栏目名称</th>
              <th>所属栏目</th>
              <th>栏目路径</th>
              <th>栏目代码</th>
              <th>子栏目</th>
              <th>删除</th>
            </tr>
           </thead>
	       #{if flash.success}
		    <tr>
			    <td colspan="6" style="text-align: center">
			    <font color="red">${flash.success}</font>
			    </td>
		    </tr>
	       #{/if}
	       #{list items:programas,as:'programa'}
	        <tr>
	          <td>${programa.id}</td>
	          <td><a href=@{show(programa.id)}>${programa.proName}</a></td>
	          <td>顶级栏目</td>
	          <td>${programa.proPath}</td>
	          <td>${programa.proCode}</td>
	          <td><a href=@{sulist(programa.id)}>子栏目</a></td>
	          <td><a href="@{delete(programa.id)}" onclick="return confirm('确定删除吗');">删除</a> </td>
	        </tr>
	       #{/list}
          </table>
        </form>
    </div>

    <div id="crudListPagination">
    </div>

    <p id="crudListAdd">
        <a href="@{blank()}">添加</a>
    </p>

</div>
